<template>
  <div>
    <!-- <a class="linka" @click="toTicket($data.data)">{{ticketId}}</a> -->
    <div>{{ticketId}}</div>
    <!-- <div v-if="isShowNewTag($data.data.newFlag)"
         class="">New</div> -->
  </div>
</template>

<script>
// import store from '@/store'
// import { recordUserHyperlinks } from '../common'
export default {
  data () {
    return {}
  },
  computed: {
    ticketId () {
      return this.$data.data['TicketId']
    }
  },
  methods: {
    toTicket (val) {
      // if (!val) {
      //   return this.$message.error('Please Select filter')
      // }
      // if (store.state.user.domainUrl.cwUrl) {
      //   const url = 'https://' + store.state.user.domainUrl.cwUrl + '/v4_6_release/ConnectWise.aspx?locale=en_US&routeTo=ServiceFV&recid=' + val['ticketId']
      //   window.open(url, '_blank')
      //   let params = {
      //     type: 'nextticket',
      //     url: url,
      //     action: 'click Through',
      //     data: this.$data.data,
      //     ticketId: val['ticketId']
      //   }
      //   recordUserHyperlinks(this, params)
      // }
    }
  }
}
</script>
<style scoped>
.linka{
  cursor: pointer;
  text-decoration: underline;
}
</style>
